import axios from "axios";

const pref = '/sysTemplate';

export const save = (param) => {
  return axios.post("/api" + pref, param)
}

export const getOne = (id) => {
  return axios.get("/api" + pref + "?id=" + id)
}

export const getList = () => {
  return axios.get("/api" + pref + "/getList")
}

export const deleteOne = (id) => {
  return axios.delete("/api" + pref + "?id=" + id)
}

export const getHandler = () => {
  return axios.get("/api" + "/handler")
}

export const getFormNodeList = (id) => {
  return axios.get("/api" + "/getFormNodeList" + "?id=" + id)
}

export const deploy = (id) => {
  return axios.get("/api" + "/deploy" + "?id=" + id)
}

export const process = (id) => {
  return axios.get("/api" + "/process" + "?id=" + id)
}
